import { ajax } from '../http.js';

const assetsDataUrl = '/authc/user_assets/find_assets_by_user'; // 我的资产收益数据
const incomeDetailsUrl = '/authc/user_assets/find_income_details_page'; // 收益明细
const accountDetailsUrl = '/authc/user_assets/find_account_details_page'; // 余额明细

const assetsData = (data, success, fail) =>// 我的资产收益数据
  ajax({
    url: assetsDataUrl,
    data: data,
    success: success,
    fail: fail
  });
const incomeDetails = (data, success, fail) =>// 收益明细
  ajax({
    url: incomeDetailsUrl,
    data: data,
    success: success,
    fail: fail
  });
const accountDetails = (data, success, fail) =>// 余额明细
  ajax({
    url: accountDetailsUrl,
    data: data,
    success: success,
    fail: fail
  });

export {
  assetsData, // 我的资产收益数据
  incomeDetails, // 收益明细
  accountDetails // 余额明细
}